//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopShare, MinishopShareResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopShareList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopShareResponse>(`/uctoo/minishop_share/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopShare = async (id: string) => {
  return requestClient.get<MinishopShare>(`/uctoo/minishop_share/${id}`);
};

export const adductooMinishopShare = async (data: Partial<MinishopShare>) => {
  return requestClient.post<MinishopShare>('/uctoo/minishop_share/add', data);
};

export const edituctooMinishopShare = async (data: Partial<MinishopShare>) => {
  return requestClient.post<MinishopShare>('/uctoo/minishop_share/edit', data);
};

export const deleteuctooMinishopShare = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_share/del', { id });
};
